package com.odm.communitymanage.core.bean;

import com.chad.library.adapter.base.entity.node.BaseExpandNode;
import com.chad.library.adapter.base.entity.node.BaseNode;

import org.jetbrains.annotations.Nullable;

import java.util.List;

/**
 * @description: 月份费用 实体类
 * @author: ODM
 * @date: 2020/4/20
 */
public class MonthExpense  extends BaseExpandNode {


    /**
     * TypeExpense : [{"type":"电费","price":223.2},{"type":"水费","price":223.22}]
     * time : 2020年 4 月
     * sum : 446.44
     */

    private String time;
    private String sum;
    private List<TypeExpense> typeExpenses;



    public MonthExpense(String time, String sum, List<TypeExpense> typeExpenses) {
        this.time = time;
        this.sum = sum;
        this.typeExpenses = typeExpenses;
    }

    @Nullable
    @Override
    public List<BaseNode> getChildNode() {
        return (List<BaseNode>) (Object)typeExpenses;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getSum() {
        return sum;
    }

    public void setSum(String sum) {
        this.sum = sum;
    }

    public List<TypeExpense> getTypeExpense() {
        return typeExpenses;
    }

    public void setTypeExpense(List<TypeExpense> typeExpenses) {
        this.typeExpenses = typeExpenses;
    }


}
